#pragma once
#include <cocos2d.h>
#include <iostream>

using namespace std;
USING_NS_CC;

class GameConfig : public CCObject
{
public:
	GameConfig(void);
	~GameConfig(void);
	bool init();
	void clearGameConfig();
	CCString* getConfigFromKey(int key);
	string getTextFromFile(string fileName);

	CC_SYNTHESIZE_RETAIN(CCDictionary*, _configData, ConfigData);

	static GameConfig* _instance;
	static GameConfig* sharedGameConfig();

};
